<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
</head>
<body>
<form id="myForm2">
    姓名：<input name="companyName" />
    地址：<input name="companyAddr" />
    <input type="button" id="query" class="btn btn-info" style="width: 80px;" value="查询" />
</form>
<!-- Main content -->
<section class="content">
    <div class="container-fluid">
        <div class="card-header">
            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-info">
                添加
            </button>
        </div>
        <div class="card-body">
            <table class="table table-bordered" id="mytable">
                <thead>
                <tr>
                    <th style="width: 10px">id</th>
                    <th>商家姓名</th>
                    <th>电话</th>
                    <th>地址</th>
                    <th>创建时间</th>
                    <th>更新时间</th>
                    <th style="" colspan="2">操作</th>
                </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
        <div class="card-footer clearfix">
            <ul class="pagination pagination-sm m-0 float-right" id="paging">
            </ul>
        </div>
    </div>
</section>
<div class="modal fade" id="modal-default" style="display: none;" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">商家信息</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true"><p class="nav-icon fas fa-window-close"></p></span>
                </button>
            </div>
            <form role="form" id="myForm">
                <div class="modal-body">
                    <div class="form-group">
                        <input type="text" class="form-control" id="companyId" name="companyId" hidden="hidden">
                    </div>
                    <div class="form-group">
                        <label for="companyName">companyName</label>
                        <input type="text" class="form-control" id="companyName" name="companyName" placeholder="Name">
                    </div>
                    <div class="form-group">
                        <label for="companyPhone">companyPhone</label>
                        <input type="text" class="form-control" id="companyPhone" name="companyPhone" placeholder="phone">
                    </div>
                    <div class="form-group">
                        <label for="companyAddr">companyAddr</label>
                        <input type="text" class="form-control" id="companyAddr" name="companyAddr" placeholder="address">
                    </div>
                </div>
                <div class="modal-footer justify-content-between">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-success swalDefaultSuccess" id="editCompanySuccess" data-dismiss="modal">更新</button>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="modal fade" id="modal-info" style="display: none; padding-right: 17px;" aria-modal="true">
    <div class="modal-dialog">
        <div class="modal-content bg-info">
            <div class="modal-header">
                <h4 class="modal-title">添加商家</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true"><p class="nav-icon fas fa-window-close"></p></span></button>
            </div>
            <form role="form" id="myForm1">
                <div class="modal-body">
                    <div class="form-group">
                        <label for="name1">companyName</label>
                        <input type="text" class="form-control" id="name1" name="companyName" placeholder="Name">
                    </div>
                    <div class="form-group">
                        <label for="phone1">companyPhone</label>
                        <input type="text" class="form-control" id="phone1" name="companyPhone" placeholder="phone">
                    </div>
                    <div class="form-group">
                        <label for="addr1">companyAddr</label>
                        <input type="text" class="form-control" id="addr1" name="companyAddr" placeholder="address">
                    </div>
                </div>
                <div class="modal-footer justify-content-between">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-success swalDefaultSuccess" id="addCompanySuccess" data-dismiss="modal">添加</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/bssmanager/dist/js/demo.js"></script>
<script src="${pageContext.request.contextPath}/bssmanager/plugins/sweetalert2/sweetalert2.min.js"></script>
<script src="${pageContext.request.contextPath}/bssmanager/plugins/toastr/toastr.min.js"></script>
<script>

</script>
</body>
</html>
